package com.jumi.microservice.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @author scw
 * @date 2020/12/22
 */
@Configuration
@RefreshScope
public class ExpireTimeConfig {
    // 1、用户申请已提交，等待平台审核。时间2天
    // 2、平台审核通过，等待用户上传单号。时间为2天
    // 3、用户已发货，等待平台收货。时间7天
    // 4、收货时间+8天内，售后有效期
//    //时间戳
//    long DIFF_TIMESTAMP_ONE = 2 * 24 * 60 * 60 * 1000;
//    long DIFF_TIMESTAMP_TWO = 2 * 24 * 60 * 60 * 1000;
//    long DIFF_TIMESTAMP_THREE = 7 * 24 * 60 * 60 * 1000;
//    //分钟
//    int DIFF_MINUTE_ONE = 2 * 24 * 60;
//    int DIFF_MINUTE_TWO = 2 * 24 * 60;
//    int DIFF_MINUTE_THREE = 7 * 24 * 60;
    /**
     * 时间2天，时间戳
     */
    @Value("${expireTime.diffTimeStampOne}")
    private String diffTimeStampOne;
    /**
     * 时间为2天，时间戳
     */
    @Value("${expireTime.diffTimeStampTwo}")
    private String diffTimeStampTwo;
    /**
     * 时间7天，时间戳
     */
    @Value("${expireTime.diffTimeStampThree}")
    private String diffTimeStampThree;
    /**
     * 时间2天，分钟
     */
    @Value("${expireTime.diffMinuteOne}")
    private String diffMinuteOne;
    /**
     * 时间为2天，分钟
     */
    @Value("${expireTime.diffMinuteTwo}")
    private String diffMinuteTwo;
    /**
     * 时间7天，分钟
     */
    @Value("${expireTime.diffMinuteThree}")
    private String diffMinuteThree;

    /**
     * 时间8天，天
     */
    @Value("${expireTime.diffDayOne}")
    private String diffDayOne;

    public String getDiffTimeStampOne() {
        return diffTimeStampOne;
    }

    public void setDiffTimeStampOne(String diffTimeStampOne) {
        this.diffTimeStampOne = diffTimeStampOne;
    }

    public String getDiffTimeStampTwo() {
        return diffTimeStampTwo;
    }

    public void setDiffTimeStampTwo(String diffTimeStampTwo) {
        this.diffTimeStampTwo = diffTimeStampTwo;
    }

    public String getDiffTimeStampThree() {
        return diffTimeStampThree;
    }

    public void setDiffTimeStampThree(String diffTimeStampThree) {
        this.diffTimeStampThree = diffTimeStampThree;
    }

    public String getDiffMinuteOne() {
        return diffMinuteOne;
    }

    public void setDiffMinuteOne(String diffMinuteOne) {
        this.diffMinuteOne = diffMinuteOne;
    }

    public String getDiffMinuteTwo() {
        return diffMinuteTwo;
    }

    public void setDiffMinuteTwo(String diffMinuteTwo) {
        this.diffMinuteTwo = diffMinuteTwo;
    }

    public String getDiffMinuteThree() {
        return diffMinuteThree;
    }

    public void setDiffMinuteThree(String diffMinuteThree) {
        this.diffMinuteThree = diffMinuteThree;
    }

    public String getDiffDayOne() {
        return diffDayOne;
    }

    public void setDiffDayOne(String diffDayOne) {
        this.diffDayOne = diffDayOne;
    }
}
